//package project.base.common.config
//
//import com.ctrip.framework.apollo.Config
//import com.ctrip.framework.apollo.ConfigService
//import com.ctrip.framework.apollo.model.ConfigChangeEvent
//import com.ctrip.framework.apollo.spring.annotation.ApolloConfigChangeListener
//import org.springframework.stereotype.Component
//
///**
// * apollo配置
// * @author 三味
// * @since 2022/3/2 20:43
// */
//@Component
//class ApolloConfig {
//    var config: Config = ConfigService.getAppConfig()
//
//    @ApolloConfigChangeListener
//    fun apolloListener(changeEvent: ConfigChangeEvent) {
//        changeEvent.changedKeys().forEach { key ->
//            val change = changeEvent.getChange(key)
//            println(String.format("Found change - key: %s, oldValue: %s, newValue: %s, changeType: %s", change.propertyName, change.oldValue, change.newValue, change.changeType))
//        }
//    }
//}
